import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class CssVariablesService {

  constructor() { }
  getCssValue(attr: string) {
    return getComputedStyle(document.body).getPropertyValue(attr).trim()
  }
  setCssValue(attr: string, value: string): void {
    document.body.style.setProperty(attr, value)
  }
}
